module.exports = {
    /**
     *
     * @param{Map} map
     */
    map2obj(map) {
        const obj = {}
        for (let [k, v] of map) {
            console.log(v)
            obj[k] = v
        }
        console.log(obj)
        return obj
    },
    set2arr(arr) {
        return Array.from(arr)
    }
}
